home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _IsPressed.au3 < prev    next >
Text File  |  2006-06-17  |  198b  |  12 lines

  1. #include <Misc.au3>
  2.  
  3. $dll = DllOpen("user32.dll")
  4.  
  5. While 1
  6.     Sleep ( 250 )
  7.     If _IsPressed("23", $dll) Then
  8.         MsgBox(0,"_IsPressed", "End Key Pressed")
  9.         ExitLoop
  10.     EndIf
  11. WEnd
  12. DllClose($dll)